import CommonApi from './common'

// 日常养护记录管理
class MaintenanceRecordManagementApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/ms/maintrecord'
    }
    static exportVisaVoucherPath = '/ms/maintrecord/exportVisaVoucher'
    static exportArchiveCardPath = '/ms/maintrecord/exportArchiveCard'
    records(data) {
        const path = this.resolvePath('/page/list')
        return this.post(path, data)
    }

    detail(data) {
        const path = this.resolvePath('/detailsById')
        return this.post(path, data)
    }

    saveOrUpdate(data) {
        const path = this.resolvePath('/save')
        return this.post(path, data)
    }
}

export default MaintenanceRecordManagementApi
